<?php
    $this->headTitle($this->site_name.' - Dashboard');
?>
<script>
	$(function() {
		$( "#dialog-form" ).dialog({
			autoOpen: true,
			height: 290,
			width: 420,
			modal: true
		})

		$( "#dpt_id" ).change(function () {
			if ( $("#dpt_id option:selected").val()==1 ){
				location="/index/google";
			}
		})
	});
		
</script>

        <?php if (!empty($this->formError)): ?>
            <div class="response-msg error ui-corner-all" style="font-weight:bold;">
                <?php echo $this->formError; ?>
            </div>
        <?php endif; ?>


        <div id="dialog-form" title="Login to client account" style="display:none;" >

			<?php if (empty($this->msg)):?>
				<div style="margin-bottom:20px;">Only YesUp account or subscribed service accounts can log in.</div>
			<?php endif; ?>
			
            <?php echo $this->form; ?>

        </div>


